import request from '@/utils/request'

// 查询师傅统计信息列表
export function listEngineerStatistics(query) {
  return request({
    url: '/vanger/engineerStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询师傅统计信息列表（联合）
export function listUnion(query) {
  return request({
    url: '/vanger/engineerStatistics/listUnion',
    method: 'get',
    params: query
  })
}


// 查询师傅统计信息详细（联合）
export function getInfoUnion(id) {
  return request({
    url: '/vanger/engineerStatistics/getInfoUnion/' + id,
    method: 'get'
  })
}

// 查询师傅统计信息详细
export function getEngineerStatistics(id) {
  return request({
    url: '/vanger/engineerStatistics/' + id,
    method: 'get'
  })
}

// 新增师傅统计信息
export function addEngineerStatistics(data) {
  return request({
    url: '/vanger/engineerStatistics',
    method: 'post',
    data: data
  })
}

// 修改师傅统计信息
export function updateEngineerStatistics(data) {
  return request({
    url: '/vanger/engineerStatistics',
    method: 'put',
    data: data
  })
}

// 删除师傅统计信息
export function delEngineerStatistics(id) {
  return request({
    url: '/vanger/engineerStatistics/' + id,
    method: 'delete'
  })
}
